import request from '../utils/request'
import downloadRequest from '../utils/downloadRequest'

// 查询列表数据
export function loadPageData(data) {
  return request({
    url: '/api/v1/load_table',
    method: 'post',
    data,
  })
}

// 获取当前应用名称
export function getName(data) {
  return request({
    url: '/api/v1/get_application_name',
    method: 'post',
    data,
  })
}

// 导出下载
export function download(data) {
  return downloadRequest({
    url: '/api/v1/generator_download',
    method: 'post',
    responseType: 'blob',
    data,
  })
}
